<?

include_once("base.php");


$key=$_REQUEST['keyword'];

if($key)
{
    $cond="and name like '%".$key."%'";
}
else
{
    $cond="";
}

//$_jidngdian_list=select_lines_all_items($table_prefix."term","listorder desc,nid desc","interm = 'root' and belong = 'product' ".$cond,"");
$_jidngdian_list=select_lines_all_items($table_prefix."term","rand()","interm = 'root' and belong = 'product' ".$cond,"");

$result=$_jidngdian_list;

echo out("success",0,$result);
?>